package com.example.outdoor;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class EditTables extends Activity implements OnClickListener{
	Button EditAvenue,EditCondition,EditObstraction,EditProduct,EditCarrier,btnGoBackEditTables;
	@Override
	 public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.edittables);
        EditAvenue=(Button)findViewById(R.id.btnEditAvenue);
        EditCondition=(Button)findViewById(R.id.btnEditCondition);
        EditObstraction=(Button)findViewById(R.id.btnEditObstraction);
        EditProduct=(Button)findViewById(R.id.btnEditProduct);
        EditCarrier=(Button)findViewById(R.id.btnEditCarrier);
        btnGoBackEditTables=(Button)findViewById(R.id.btnGoBackEditTables);
		EditAvenue.setOnClickListener(this);
		EditCondition.setOnClickListener(this);
		EditObstraction.setOnClickListener(this);
		EditProduct.setOnClickListener(this);
		EditCarrier.setOnClickListener(this);
		btnGoBackEditTables.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.btnEditAvenue:
		Intent OurAvenueIntent=new Intent(EditTables.this,ListofAvenue.class);
		startActivity(OurAvenueIntent);
			break;
		case R.id.btnEditCondition:
			Intent OurConditionIntent=new Intent(EditTables.this,ListOfCondition.class);
			startActivity(OurConditionIntent);
				break;
		case R.id.btnEditObstraction:
			Intent ourObstIntentIntent=new Intent(EditTables.this,ListOfObstraction.class);
			startActivity(ourObstIntentIntent);
				break;
		case R.id.btnEditProduct:
			Intent ourProductIntent=new Intent(EditTables.this,ListOfProduct.class);
			startActivity(ourProductIntent);
				break;
		case R.id.btnEditCarrier:
			Intent ourCarrierIntent=new Intent(EditTables.this,ListOfCarrier.class);
			startActivity(ourCarrierIntent);
				break;
		case R.id.btnGoBackEditTables:
			Intent ourGoBackIntent=new Intent(EditTables.this,Tables.class);
			startActivity(ourGoBackIntent);
			break;
		default:
		break;
		}
		
	}

}
